//
//  EFAMsgControlTVC.h
//  efairy
//
//  Created by XiangDongMBP on 2017/8/4.
//  Copyright © 2017年 East. All rights reserved.
//

#import <UIKit/UIKit.h>

@class EFAMsgControlTVC;
@protocol EFAMsgControlTVCDelegate <NSObject>
@optional
- (void)msgControlTVC:(EFAMsgControlTVC *)vc alarmBtnTapped:(UIButton *)alarmBtn;
- (void)msgControlTVC:(EFAMsgControlTVC *)vc alarmCount:(NSInteger)alarmCount;
@end

@class EFAMsgIMItem;
@interface EFAMsgControlTVC : UITableViewController
@property (nonatomic, assign) NSInteger device_id;
@property (nonatomic, copy)   NSString *device_name;
@property (nonatomic, assign) BOOL isFromDeviceInfo;
@property (nonatomic, assign) NSInteger alarm_id;       ///< -1表示全部信息
@property (nonatomic, weak)   id<EFAMsgControlTVCDelegate>delegate;

- (void)sendMsg:(EFAMsgIMItem *)msg;
- (void)refreshViewWithAlarmId:(NSInteger)alarm_id;
- (void)enterEditingMode:(BOOL)editing;     // 进入编辑模式
- (void)wholeSelOrNot:(BOOL)wholeSel;       // 全选or全不选
- (void)completeSelection;                  // 完成故障选择
@end
